package org.mozhu.zufang.system.account.service;

import org.mozhu.mboot.core.data.IBaseService;
import org.mozhu.zufang.system.account.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * 用户 - 业务层接口
 *
 * @author mozhu
 */
public interface UserService extends IBaseService<User, Long> {

    Page<User> queryUser(String query, Pageable pageable);

    User findByLoginName(String loginName);

    User findByName(String name);

    User findByMobile(String mobile);

    User findByEmail(String email);

    void encryptPassword(User user);

}
